package com.yulongtian.algorithms.trie;

/**
 * 字典树测试类
 *
 * @author yulongTian
 * @create 2023-01-06 10:59
 */
public class TrieTreeTest {
    public static void main(String[] args) {
        TrieTree trie = new TrieTree();
        System.out.println("null");
        trie.insert("apple");
        System.out.println("null");
        System.out.println(trie.search("apple"));
        System.out.println(trie.search("app"));
        System.out.println(trie.startsWith("app"));
        trie.insert("app");
        System.out.println("null");
        System.out.println(trie.search("app"));
    }
}
